package erwiki.part.providers;

import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.preference.StringFieldEditor;

public class BasicAttachmentProviderPreferencePage extends FieldEditorPreferencePage {
	private static final long serialVersionUID = 1L;

	/**
	 * Create the preference page.
	 */
	public BasicAttachmentProviderPreferencePage() {
		super(FieldEditorPreferencePage.FLAT);
	}

	/**
	 * Create contents of the preference page.
	 */
	@Override
	protected void createFieldEditors() {
		// Create the field editors
		addField(new StringFieldEditor(BasicAttachmentProvider.Prefs.DISABLE_CACHE, "Disable caching for", -1,
				StringFieldEditor.VALIDATE_ON_KEY_STROKE, getFieldEditorParent()));

		addField(new StringFieldEditor(BasicAttachmentProvider.Prefs.STORAGE_DIR, "Attachments location", -1,
				StringFieldEditor.VALIDATE_ON_KEY_STROKE, getFieldEditorParent()));
	}

}
